{{ header }}
<div id="press_all" class="container">
	<div class="row">
		{{ column_left }}
		{% if column_left and column_right %}
			{% set class = 'col-sm-6' %}
		{% elseif column_left or column_right %}
			{% set class = 'col-sm-9' %}
		{% else %}
			{% set class = 'col-sm-12' %}
		{% endif %}

		<div id="content" class="{{ class }}">{{ content_top }}
			{% if categories %}
				<div class="press-category">
					{% for category in categories %}
						<a href="{{ category.href }}" class="">{{ category.name }}</a>
					{% endfor %}
				</div>
			{% endif %}
			{% if presses %}
				<ul class="press-list">
					{% for press in presses %}
						<li class="press-list-item clearfix">
							<div class="press-list-item-thumb">
								<a href="{{ press.link }}" title="{{ press.title }}">
									<img src="{{ press.thumb }}" alt="">
								</a>
							</div>
							<div class="press-list-item-info">
								<h4 class="press-list-item-info-title">
									<a href="{{ press.link }}" title="{{ press.title }}">{{ press.title }}</a>
								</h4>
								<p class="press-list-item-info-desc">
									{{ press.description }}
								</p>
								<span class="press-list-item-info-date">{{ created_at }}{{ press.date_added }} </span>
							</div>
						</li>
						<hr>
					{% endfor %}
					<div class="row">
						<div class="col-sm-6 text-left">{{ pagination }}</div>
						<div class="col-sm-6 text-right">
							<div class="pagination-info">{{ results }}</div>
						</div>
					</div>
				</ul>
			{% else %}
				<div class="no-press text-center">
					<img src="/catalog/view/theme/{{ helper.config('theme_default_directory') }}/image/icon/icon_zanwuxinwen.svg" width="162" height="162" alt="">
					<p>{{ text_empty }}</p>
				</div>
				{#<div class="buttons">#}
					{#<div class="pull-right"><a href="{{ continue }}" class="btn btn-primary">{{ button_continue }}</a></div>#}
				{#</div>#}
			{% endif %}
			{{ content_bottom }}</div>
		{{ column_right }}</div>
</div>
{{ footer }}

<script>
    jQuery(document).ready(function($){
        var current_href = window.location.href;
        $('.press-category a').each(function(){
            if(this.href === current_href) this.className = 'active';
        })
	});
</script>
